package com.htstar.ovms.admin.api.dto;

import com.htstar.ovms.admin.api.vo.CarInfoVO;
import com.htstar.ovms.admin.api.vo.UserVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.List;

@Data
@ApiModel(value = "部门树2")
public class DeptNode {
    @ApiModelProperty(value = "部门名称")
    private String name;

    @ApiModelProperty(value = "部门id")
    private Integer deptId;

    @ApiModelProperty(value = "部门名称(2)")
    private String etpName;

    /**
     * 是否显示被锁定
     */
    private Boolean isLock = true;

    @ApiModelProperty(value = "当前节点id")
    protected int id;
    @ApiModelProperty(value = "父节点id")
    protected int parentId;
    @ApiModelProperty(value = "子节点列表")
    protected List<DeptNode> children;
    @ApiModelProperty(value = "企业树中的车辆信息")
    protected List<CarInfoVO> carInfoVOList;

    @ApiModelProperty(value = "部门员工")
    List<UserVO> staff;
}
